home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20000824-20010305
/
000218_news@columbia.edu _Tue Jan 23 10:13:33 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id KAA08202
for <kermit.misc@cpunix.cc.columbia.edu>; Tue, 23 Jan 2001 10:13:33 -0500 (EST)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA04806
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 23 Jan 2001 10:13:32 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id KAA06385
for kermit.misc@watsun.cc.columbia.edu; Tue, 23 Jan 2001 10:03:26 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@columbia.edu (Frank da Cruz)
Subject: Re: Unwanted blank space in filenames...
Date: 23 Jan 2001 15:03:18 GMT
Organization: Columbia University
Message-ID: <94k6fm$671$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <73sh49.9im.ln@gate.heywood.co.uk>,
Lawry <nobody@nowhere.com> wrote:
: I have a sort semi-automatic process for users to upload files from the PC's
: to a Unix Server, and utilise Kermit (C-Kermit 6.0.192) underneath.
: Basically I just have a system call in the program on unix to start
: "kermit -r" and then allow the user to utilise the file transfer system of
: the KEA 420 emulation software to transfer the file required.
:
If you used Kermit 95:
http://www.columbia.edu/kermit/k95.html
instead of Hyperterminal, you could have it convert the spaces to printable
characters when sending. The command is "set file names converted".
: My problem is that when a file on the PC has spaces within it, the file
: arrives on Unix with spaces in the filename, and then the programs that
: subsequently process these files cannot handle the files and crashes.
:
: What I need to know is, is there an option I can use from the command line
: (such that I can merely change the system call in the program on Unix to a
: "kermit -r -whatever") that will strip blank space out of the file name so
: that "My File.txt" on the PC would be "MyFile.txt" on Unix?
:
Yes, but you'll need C-Kermit 7.0 for this:
http://www.columbia.edu/kermit/ckermit.html
The command would be:
kermit -r -a "\freplace(\v(filename),\32,_)"
-r means "receive" and -a specifies an "as-name", which in this case is a
template, in which \v(filename) is replaced by the name of each file, and
\freplace(string,\32,_) is a function that returns its argument with blanks
(\32) replaced by underscore (_). More about templates here:
http://www.columbia.edu/kermit/ckermit2.html#x4.1
- Frank